package com.csair.platform.cit.service.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

@Data
@Entity
@Table(name ="cit_declare_record")
public class CitDeclareRecord implements Serializable{
	
	 /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
     * 唯一id
     */
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Long id;

    /**
     * 纳税人识别号
     */
    private String nsrsbh;
    private String swjgmc;

	/**
	 * 申报税种名称
	 */
	@Column(name="tax_name")
    private String taxName;

	/**
	 * 税款属期-起
	 */
	private String skssqq;
	/**
	 * 税款属期-止
	 */
    private String skssqz;

	/**
	 * 税额
	 */
	@Column(name="tax_amount")
    private BigDecimal taxAmount;

	/**
	 * 申报状态名称
	 */
	private String status;
    
    /**
	 * 发送申报时间
	 */
	@Column(name = "send_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Temporal(TemporalType.TIMESTAMP)
	private Date sendTime;
    
    /**
	 * 创建人
	 */
	@Column(name = "create_by")
	private String createBy;
	
	/**
	 * 创建时间
	 */
	@Column(name = "create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;

	/**
	 *	申报时间
	 */
	@Column(name = "sbsj")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Temporal(TemporalType.TIMESTAMP)
	private Date sbsj;

	/**
	 *	交易流水号
	 */
	@Column(name = "jylsh")
	private String jylsh;

	/**
	 * 申报代码种类
	 */
	@Column(name = "sbzl")
	private String sbzl;

	/**
	 * 申报税额
	 */
	@Column(name = "sbse")
	private String sbse;
	
	/**
	 * 凭证序号
	 */
	@Column(name = "pzxh")
	private String pzxh;	

	/**
	 * 反馈代码 ：0 申报成功 ，-1 申报失败，9 异步处理中
	 */
	@Column(name = "fkdm")
	private String fkdm;

	/**
	 * 申报受理反馈信息
	 */
	@Column(name = "fkxx")
	private String fkxx;
	
	/**
	 * 申报结果反馈信息
	 */
	@Column(name = "jgfkxx")
	private String jgfkxx;
	
	/**
	 * 更新时间
	 */
	@Column(name = "update_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Temporal(TemporalType.TIMESTAMP)
	private Date updateTime;
}
